package com.project.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.ShowGoodsBean;

public interface IShowGoodsService {
    /**
     * 查看上架商品详情
     * @param showGoodsId 库存商品id
     * @return 库存商品对象
     */
    ShowGoodsBean findById(Integer showGoodsId);

    /**
     * 添加上架商品
     * 默认状态为请求上架0
     * @param goodsId
     * @param salePrice
     * @param picturePath
     * @param esId
     * @param text
     */
    public void add(Integer goodsId,
                    double salePrice,
                    String picturePath,
                    Integer esId,
                    String text);

    /**
     * 修改上架商品状态为已上架/审核未通过
     * @param showGoodsId
     * @param newStatus
     */
    public void updateStatus(Integer showGoodsId,String newStatus);

    /**
     * 动态条件分页查询
     * @param pageNum
     * @param status
     * @return
     */
    public Page<ShowGoodsBean> cutFindByItem(Integer pageNum,String status);

}
